 - fix to generate valid objects even when sending an error
 - fix to generate valid objects even when sending an error


git-svn-id: 0ad960d935c0e843da4705e9b0b585cac384bf0d@5109 16e81406-0b52-4fc8-9ac4-c3f00167659a

stevedh/readingdb,stevedh/readingdb,stevedh/readingdb,stevedh/readingdb