Urgent: Bug fix hasTouch check. Not possible do use document.ontouchstart

Not possible to use document.ontouchstart check, because this does not work if ontouchstart method is used to catch touches on document. Added proper check for "ontouchstart" method.

Please patch this ASAP.