fixes #2737

If an ApplicationRoute has a model hook defined,
ensure currentPath is defined on the controller
before setting it.