handle ObjectDoesNotExist in migration