Fix for FB128454

Replicated fix for auto-advance widget bug (auto-advance widgets are crashing due to the order of processing events).
Merge pull request #10 from dimagi/autoadvancefix

Fix for FB128454