Fixed uncaught ErrorException when exception was thrown from initial route.