Fix a GTK warning due to passing an invalid path to gtk_tree_view_set_cursor().