[BugFix] Little bug fix inside product model

You could not set a master variant if the non-master variant was already added to the product. This patch fixed it.
TBH. I would merge both `if`s as there no point to split cause in first `if` you do nothing if second one will not pass.