Added a check for invalid quantile computations

Fix for https://bugs.launchpad.net/oq-engine/+bug/1344045
The tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/480