Avoid setting focus if input element is not displayed. Fixes error in IE.

Processed with:

```shell
uglifyjs --vmc
```