Fixed #22728 - Prohibited lookups usage for get_or_create