Added improved debugging for incorrect message handling.
Merge pull request #1676 from jakewins/ha-classscast-debug

Added improved debugging for incorrect message handling.