Fixed query creation for updateDocumentById.

Fixed missing NULL default for result_out for updateDocumentById.