Fixed possible NPE
Handler classes are now registered when the bundle is started.