Fixed issue with writing logs during VCS init

There’s no plan during a VCS init so the plan path is null. When
ExecutePDTool was trying to generate a log file name based on the base
name of the plan path, an NPE was being thrown.