Hide empty domain using ng-class instead of ng-hide (which is buggy on the 4th element, for some reason).