check for none in set_value

This fixes undo when only one number is on the board.

https://bugzilla.gnome.org/show_bug.cgi?id=731011
Do not update hints if grid is null

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