minimal fix for segfault when redis goes away - this causes exception in php