OAK-1242 Weak reference targets added after the reference property are not indexed

- add test case

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