updates section: Fix a crash during automatic updates
When self->list is cleared, a bunch of variables pointing to items constructed in _build_section_header() become invalid. Make sure that we set those to NULL when self->list is cleared so that we can avoid using dangling pointers in callbacks.