[Libvir] [PATCH]check NULL of mac