checking for this.element && this.element.innerHTML before setting innerHTML to '' (IE8 pleasing)