pyldb: avoid segfault when adding an element with no name