Made it behave sanely when redis contains junk data