libvirt.test: Fix hidden bug in domdisplay test

Befor test, check if domain has graphic device, if
no graphic device exists, add one device.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>