Fix the issue of seeing "Error while writing to artifact cache: an integ...

...er is required" during [cache check]