catch undefined error in getCallback method

Fix the getCallback method if no event has been added for the current target_id 
then there will be no record in the eventCallbacks array for that target. 
This will throw a object is null or undefined error