Fixed bug formulaBar focus lost no validity check

of entry.