Correct the parsing logic to find given symbol in the file. There were
inaccuracies in how we were finding it earlier, although it didn't
matter much. But now at least things are logical. A symbol that's
readable on the screen has to be of type NameTree.