Fix empty alert file not created without errors