[git] Fix NPE if process is not started

startProcess() is immediately followed by startHandlingStreams(),
which can return null if the process is told to be destroyed before
starting.

No synchronization is needed here, since these 2 methods are called
sequentially only from start().
spase within spread operator
IDEA-56096 Allow to create file templates with extension contains dot [CR-IC-3923]