use defensive if
use defensive if


Former-commit-id: e42b7e1bc62b88543fe22e32239403503a1e74cd [formerly e42b7e1bc62b88543fe22e32239403503a1e74cd [formerly 17d71356e86ebd67eed8b81fa60a3ecc4e4afbd9]]
Former-commit-id: 51f98bb3cb645ee38f88f61c31989d6d09f787df
Former-commit-id: 1bea0f6fbaeba2e0493301f2c71367675793722f
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine