Fix exact_match => false in autocomplete

This issue can't really be tested using phpunit because it's largely dependent on JS, hence the lack of unit tests.