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.