There are JUnit tests that don't implement getParent(). Adding NPE checks on CollectionResourceWrapper