Fix wrong page leave on click a tag without href data

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.