Work around an issue in GObject.signal_handler_find with a version check.