Improve currentRouteAction()

Return null when function called using closure. Will prevent Exceptions.