Is the document empty?
Have you used the debugging tools to view the contents of the document before the save occurs?