[FELIX-4571] NullPointerException when using Repository impl with Aries subsystem impl

This commit should fix this problem.
Unit test also included.


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