set "state" to default value when query string is empty
set "state" to default value when query string is empty

when query string is empty, setState() will set "state[prop]" to "undefined".
thomaspark/glyphsearch,thomaspark/glyphsearch,grimen/glyphsearch,grimen/glyphsearch