Fixed issue that was causing atompub sips to lose their data file because the foxml was being written to disk too soon