Fixed bug duplicating calls to amOnPage and amOnRoute.

This PR is a fix for: https://github.com/Codeception/Codeception/issues/1389 issue.