Fixing bug where we cannot set empty stats in Redis.
Redis does not allow empty hash values, so we do not try to set the key if the local stats hash is empty. Adding a regression test for this scenario.