Fix parser when encountering testcleanup/testsetup failures.

Refs #9874