Do not update hints if grid is null

https://bugzilla.gnome.org/show_bug.cgi?id=633351
Remove epilepsy hazzard with minimal changes