Fix crash on undo after reload
When the doc is externally modified we must clear any stored state that relies on the doc being same.
Checksum check is useless because it is already updated, we must clear it unconditionally always if m_modOnHD == true