[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.
Yeah me too. But this would be better yes, we do not even need the top lines. Also, the check for `isMaster` is also not really necessary, right?