Companion of https://github.com/gem/oq-nrmllib/pull/116

Addresses https://bugs.launchpad.net/oq-engine/+bug/1204569