COMP: Fix coverity defects related to RegistrationV4 examples

Coverity reports unhandled exceptions in RegistrationV4 examples,
and try/catch blocks are added around the point of call.

Change-Id: Ib79bb47bc06f3a25629c3c2eb9ea336a743d5b13
Merge topic 'RegistrationV4CoverityWarnings'

bfd4b44f COMP: Fix coverity defects related to RegistrationV4 examples