BZ-11708: Better error checking on setFacetsResults()

Signed-off-by: Paden <padenportillo@gmail.com>