Avoid segfault when we fail to create a tempfile
Avoid segfault when we fail to create a tempfile

This should avoid the crash in #451 but does not fix the root cause,
which is still being investigated.

buchgr/bazel-remote,buchgr/bazel-remote