Fixes #816 UnitOfWork::doDetach wasn't clearing documentUpserts

Added newline at end of file
Merge pull request #820 from malarzm/gh816

Fixes #816 UnitOfWork::doDetach wasn't clearing documentUpserts