templates / branches--on commit tempfile: handle NULL tempfile pointers gracefully (f5b4dc7)
   1: this is just to ensure the directory exists.