Prevent undefined errors in TapParser if output from scripts failed (Close #467 )

Prevent undefined errors in TapParser if output from scripts failed
- Close #467
-Maybe Close #444