Fix crash on window resize
auto merge of #587 : eschweic/servo/master, r=metajack

This fixes a bug that would sometimes trigger a fail! when the window was resized.