Fixed a subtle ImportError

This will fix Jenkins: https://ci.openquake.org/job/master_oq-commonlib/325/