virt: Add AttributeError when use vm.monitor

The vm class may doesn't have monitor member, it
depands on guest type(qemu, libvirt), but here we
can ignore guest type, catch AttributeError is fine.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>