Update ohsnap.js

Avoid extra `<span class="undefined">` tag if no icon is given.