Fix segfault for in profile_t::start_element