Fix wrong page leave

If form contains field(s) with jquery.ui.autocomplete, autocomplete generate html a tags with empty href attribute. If you select item from list dirty popup showing.