Uncaught TypeError

Uncaught TypeError: Cannot call method 'removeChild' of null,
"if(this.helper[0] != this.currentItem[0]) this.helper.remove(); this.helper = null;", causes the error as well.