ontouchstart null check in addEventListeners

With apologies for multiple requests, my original request only added the null check to removeEventListeners, this one includes it in addEventListeners as well.