Add better error checking to empty faceted results.

Was causing fatal errors.