Fixed checkIfDocumentsWerModified function in Twedit++