Fix so passing an empty array as the message will not cause an error.