Use a more robust way of checking if GridView is measuring an item. Fixes #137.