Log an error on malformed JSON in chatHandler