add null check "this.placeholder[0].parentNode"

this.placeholder[0].parentNode is null or undefined thie line. It's same as line 497