virt: Add NULL checking to multiple config strings validation