Catch Runtime error when saving empty file.