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

fix regression for autocomplete with empty prefix