Fixes #5749: Prevent error when migrating existing marketing and enginee...

...ring

Products due to STI inheritance column.