Fixes following assertion Unexpected critical/warning: g_node_traverse: assertion 'root != NULL' failed