Avoid leaking VM password if error happens in during domain definition. ref #656