Only make thing-icon an image if it will have a src
Only make thing-icon an image if it will have a src

Fix #580

moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway