Fixes issue where load indicator hangs around on errors when a redirect is used