registerAsService fails gracefully.

Detect if defaultServiceManager is non existant and return appropriate
error.

Test: compiles
Change-Id: I044fa5f74ab278b9996ad0d03505712b84a82526
1 file changed