GListStore: fix preconditions in insert_sorted()