disk_cache: remove unnecessary NULL-pointer guards