Improve the error message when the user sets the wrong calculation_mode

See https://bugs.launchpad.net/oq-engine/+bug/1385088. The tests are green: https://ci.openquake.org/job/zdevel_oq-risklib/98
Please be sure that this foobar stuff is actually needed for the test