Check if config.vm.communicator is defined before checking if it's set to WinRM - fixes unit tests