Added logging and fixed getThings in ThingRegistry.
Fixed NPE in BaseThingHandlerFactory.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>