Fix for artifacts not being published if test fails.