Hide error in Autocomplete and enhanced custom post type handling

For the autocomplete, I'm simply checking that something was returned to prevent errors from showing if solr isn't setup with the terms query type or no terms were found.

For custom post types, I changed the way that they are looked up to use a wordpress function.  This allows post types without any entries to be added to the settings which is useful when setting up a new site.