Fixed spec compliance issues around getting a service reference from an invalid registration and throwing an exception when there are duplicate property keys. (FELIX-798)