mochitests: handle case where failures file is not created