fix for saving empty xml

Fix for white screen of death due to error suppression