Possible fix for Sandcastle resize race.

I'm having a lot of trouble reproducing issue #608 when no one is looking.  It only reproduces in a large classroom full of Cesium students.

Still, I'm hopeful the attached change might fix or reduce the problem.  Can anyone else verify this?