quick fix to catch null cache errors from throwing 500