We need to call g_markup_parse_context_end_parse to catch incomplete documents that we might not handle well later.