Workaround for input prompt used as value on ESC in FF (#8051)

Fixed situation in which input prompt appeared as the value of an empty
TextField in FF if ESC was pressed.

Change-Id: I41c8ec4845b43b483165c10f78443f806d45a623