Don't try to set element.textContent unless it's defined

Before this the html created with 
```
emojie.register('foo', {title: 'foo', src: 'http...', class: 'emojie'});
``` 
was
```
<img src="html..." class="emojie" title="foo">undefined</img>
```