Bug fixes

When an error occurs  in StatFacet, it would fail silently without printing to the console because the puts was after the return.

Also, if the search did not contain facets, the call to  `value["facets"].collect` in StatSearch would fail (silently, because of the above bug), and just return an empty array.