Moved the check on num_assets in the right position
Moved the check on num_assets in the right position


Former-commit-id: 8efd40cfd009f8edadc96bda9ad67ec135be34f8
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine