Only call the callback if there is one callback

This enable the sendfile() to be called without a callback.