Fixing a null pointer exception in activity callback

I had a situation where the camera application would actually fail and it seems that the onActivityResult method would fall into an unusual state and throw an exception.

The simple fix was to ensure that if the plugin manager returned null for a callback, we didn't then attempt to use the callback.