Fix Router.php to behave on App::error

When App::error is triggered, Route is empty. When you try to access Route::currentRouteNamed($string), it fails because Route::current() is empty and does not have a getName() method.