Small fix for closed datastores
Small fix for closed datastores


Former-commit-id: 2c4a633ca857e634c7e615f21d99c1f45a4b8cf6 [formerly 2fc40795059b9e6e92d88407c682d694109ab0b5]
Former-commit-id: 7c6164c30f337f540caa7760903f2903daf2530f
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine