Fixed Need to make checks that the callback is a proper function and eventName is a proper value as well #2

Fixed Null/undefined for param values to 'on' and 'once' methods.
maybe put obj into a separate var statement since it is hard to read here