[FIXED-25021] If the background failed then the test may not be correctly marked as failed in some cicumstances.

Don't reset the failed state flag for skipped tests.