Check for callback prior to firing it

Prevents an error when client is used without a callback.