Cancel outstanding requests when changing template; when they arrive they will probably cause page rendering to fail.
Merge bug26455