Fixed bug caused by an incorrect null check on callback parameter
Merge pull request #38 from alanquillin/FixIncorrectNullCheckBug

Fixed bug caused by an incorrect null check on callback parameter