Fix routing issue with engine mounted to root_path

This code is similar to ```Rails3#recognizes?```. Please reuse code as much as possible. In general, the CodeClimate score should not decrease:
https://codeclimate.com/github/appfolio/ae_page_objects/compare/fixRouterEngineRoot