Fixes removeChild() on placeholder not in the DOM

If the Medium instance already has content when created, the placeholder will not be in the DOM and so cannot be removed. Causes the following error:

```
TypeError: Cannot read property 'removeChild' of null (medium.js:599)
```