Fix fatal error when contact category is unpublished.