issue #2087: Fixing potential crash reported by Sam Gross. Thanks @Sam.
Fixing dangerous pointer when removing event listener.
Adding EventDispatcher Test of removing all touch listeners.
Merge pull request #3716 from dumganhar/event-dispatcher-crash-fix

issue #2087: Fixing potential crash reported by Sam Gross. Thanks @Sam.