Dont create product if master variant invalid.
[Fixes #5306]
Fixes #5330