Do not update hints if grid is null

https://bugzilla.gnome.org/show_bug.cgi?id=633351