When rendering to an image/video file, check whether the recursive directory creation actually succeeded. If not, log an error and stop, instead of trying to write the file. This results in easier to understand error messages, and will help to triage some (what we think are) race conditions with the Blender Studio render farm. Pull Request: https://projects.blender.org/blender/blender/pulls/145118