Fix for handling a test-only job or immediate job that fails while being
built.