JUnit: fixes bug when reporting skipped tests, making them appear as errors.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>