entityreference: Fix autocomplete field submit through ajax. d.o. issue ...

...#2185003