Fix a Promise rejection. (#2036)
Fix a Promise rejection. (#2036)

Fixes #2032
moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway