Fixed check for null redis client.