Hide Facet blocks if no terms

Display correct count in tables result search
Fix some bugs