more defensive checking for rails cache classes config