[imp] Routing: using the dependency injected $app and $menu in the core routers. Fixes #5168

Changing default parameter from constructor from false to null