[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.
Yes I need to wrap the second condition in a seperate if statement.