find_by_path or find_by_previous path fix

these methods should be able to find a page in case when path is passed with and without trailing /
Merge branch 'refs/heads/master' into 3.0