Added nil-check for input data in SendMessage method.