Fix crash when running check & repair on an open AP/AR register

This was reported in comment 15 of https://bugzilla.gnome.org/show_bug.cgi?id=741418