Avoid an IntegrityError on CompatOverride admin (bug 717992)