fix regression for autocomplete with empty prefix
Merge pull request #3 from ajaxorg/autocomplete

fix regression for autocomplete with empty prefix