allow empty query string with minLength = 0 in typeahead plugin

This patch allows an empty query string when using the typeahead plugin and setting minLength to zero. I added a unit test and it passed with chrome on mac osx 10.8