simplified if-statement as suggested by Chris.
simplified if-statement as suggested by Chris.


Former-commit-id: 1373060bf44e99441fecab514a721eb69606f788
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine