fix: don't render if no element exists

refs twitter/typeahead.js#218 and twitter/typeahead.js#316