StackOverflowError example fixes #763

This shows the example (in example-app) and fixes the error a bit naively, that is for issue #763
Not sure how to unit-test this case, or if the safeguard against recursion should be altered or perhaps drop listing sub resource locators altogether.