add check for the product migration

context: https://github.com/dimagi/commcare-hq/pull/4043/files#r18421994