Fix a stash issue in middleware code
Fix a stash issue in middleware code


Former-commit-id: 326c5b92bde53d6dbccdac1cc799471e66346278
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine