Fix broken handling of maximum processes in HA Sensor Policy