check window.ontouchstart != null (required for qtwebkit)
Merge pull request #337 from jjallaire/ontouchstart-nullcheck

check window.ontouchstart != null (required for qtwebkit)