Fix crash when releasing button outside minefield

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