TIMOB-16204: Null check on gestureDetector when touch is not enabled.

https://jira.appcelerator.org/browse/TIMOB-16204

Test case in Jira.