bookmarks: Update action group sensitivity

Fix crash that occurred on the toggle bookmark action when no document
was open. It was possible to trigger the crash because the actions for
the plugin were always sensitive, even when there was no open
document.

Additionally protect against NULL in toggle_bookmark.

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