Added a check for duplicated branchset IDs

I discovered that the Swiss GMPE model had a duplicated branch set ID causing a misinterpretation of the logic tree (https://bugs.launchpad.net/oq-engine/+bug/1405364).
The tests are green: https://ci.openquake.org/job/zdevel_oq-risklib/169/