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.
Making the return more succinct
Merge pull request #4811 from weotch/patch-2

Prevent a fatal error if Router->current is empty