Index: /trunk/src/VBox/Main/MachineImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MachineImpl.cpp	(revision 29798)
+++ /trunk/src/VBox/Main/MachineImpl.cpp	(revision 29799)
@@ -4966,6 +4966,7 @@
 
     Utf8Str log = queryLogFilename(aIdx);
-    if (RTFileExists(log.c_str()))
-        log.cloneTo(aName);
+    if (!RTFileExists(log.c_str()))
+        log.setNull();
+    log.cloneTo(aName);
 
     return S_OK;
