prevent NPE in resource_failure_inspector.rb

forgive me, still working on a reproducable test case. It appears when a shell program is executed, and its stdout is nil, but stderr contains an error, it tries to append nil with line_nr_string. So the original exception is lost, as a new exception occurs while reporting the first.