Allow detecting whether a run failed when status='X'

For some reason, puq analyze didn't check for failed runs very
thoroughly. Now checks for jobs with status="X"