Throw exception if get_instance found several candidates

Having several candidates for result of get_instance function
call most probably points to an error. Added exception throw
in such case.

Change-Id: I3d25a66607b0df52b29acd54eaa1b90b34eb4704
Merge "Throw exception if get_instance found several candidates"