fix selection translation detection in some cases (report upstream?)

once text has been selected on the page the text extension part
always reports true but the string is empty after that, in addition
the selection check was bogus when input filed was selected/has
focus, handle this corner cases with an additional string check