fix error when calling mws.send() without callback parameter