Check for duplicate product names.

Strangely, no such check exists currently. Instead, one will typically
get an internal error on the artifact level later on.

Change-Id: Id9cd749a70564100bd7286b896f64cafbe9bfb73
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>