dwarf: Fix a bug with reading null entries