Only read from input data from debug message when WRITING.

Fixes submitted auto-crash-dump "report_2014.05.07_16.39.37_408"