Minor fixes for debugging
[WriteTransaction] Avoid false warning when removing empty xattr terms
Contrary to the document and filename terms the xattr terms for a document may be empty (i.e. no DB entry exists), so check for it.
[Document] Fix parameter name for setParentId