fixed bug in TextParser::getValue and TextParserTree::getElement