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).