OAK-978: Compatibility - AssertionError thrown for invalid paths
- Remove premature optimisation
- Add regression test
- Adapted test expectation

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1517773 13f79535-47bb-0310-9956-ffa450edef68