Fix Issue #351: TypeError when redirecting to currently loaded view