Don't stacktrace if we can't write a job cache.

Closes #12978