Handle case when the message payload is not
valid json for ios.