Fixed #21430 -- UnpickleException raised when unpickling from incompatible versions.