Fix GWT task running out of order

Fixes #1541