[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.