Fixes destruction of placeholder

Fixes a TypeError when trying to remove non-activated placeholder. Also removes a property added to the main element when the placeholder is created (so that it can be properly re-created on the same element).
Merge pull request #75 from cpsubrian/patch-2

Fixes destruction of placeholder