Fix issue with optional params

This addresses an issue when not passing the (optional)
params to some methods, resulting in callback not
being called at all.
Merge pull request #5 from attm2x/optional-params

Fix issue with optional params