only check text fields for differences if theDocument.changed is true, fixes issue #41