Check if there is a current route defined before getting the action

This fixes an issue I discovered when a Laravel before filter returns a response.
Merge pull request #12 from weotch/patch-1

Check if there is a current route defined before getting the action