add check for the product migration

context: https://github.com/dimagi/commcare-hq/pull/4043/files#diff-649db0a832878e7671cee114fa1e66b0R50