Prevent undefined errors in TapParser if output from scripts failed.

Closes #515