Fix bug preventing error message from being emitted.
Fix bug preventing error message from being emitted.

This will help resolve a customer issue.

scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,imron/scalyr-agent-2