[f22/master] Fix a bad usage of execWithRedirect (#1197290)