Added check on applyToSources [skip hazardlib]
Added check on applyToSources [skip hazardlib]


Former-commit-id: 1716c7703d70d4388bc6a93fb0783a0494e1fa0d [formerly df9c93116feb5750caa6bf61b9edc130ef40fab2]
Former-commit-id: 591d049b4b5871e660ad7c923f5cad771e075f5e
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine