fixed bug with selecting empty nodes in coordsCaret