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.
I think we should be consistent with '===' could you please change all of the comparisons to have 3 elements instead of 2. Also if you can find any other instances like that in the code feel free to change in this pull request