Changed storage to set total rules to -1 if whitelist is disabled or learning is enabled.