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

Added newline at end of file