Throw an exception when the gates got stored with a newer version.