Quickbook: Fail gracefully if document info is missing.
I also tweaked pre and post a bit while I was at it.
pre
post