[libvirt] [PATCH v2] check if console/channel PTY is null before attempting to open