Fix event pump order on ios when we drop in deeper message loop.
[droid] Fix event pump order on droid when we drop in deeper message loop.
Merge pull request #2167 from ulion/ios_event_pump_in_order_fix

Fix event pump order on ios when we drop in deeper message loop.