Make sure we do not dereference ir_phql_cache when it is NULL