laravel/framework — pull request #4811 by weotch (2014-06-24 00:16:02+00:00)
Title: Prevent a fatal error if Router->current is empty

Prevents a fatal error ("Call to a member function getAction() on a non-object") if currentRouteAction() is called and there is no current route. This adds code that is similar to a check found in `currentRouteName()`. I've run into this error when other packages try to use `currentRouteAction()` and the current request is being handled by a `before()` filter.