Fixed bug with checking results of getChildren for text selection