module: ignore NULL type

Just return in case module_load_qom_one(NULL) is called.
vga_interface_available() can do that.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200720100352.2477-3-kraxel@redhat.com>
diff --git a/util/module.c b/util/module.c
index 90e9bd4..0ab0085 100644
--- a/util/module.c
+++ b/util/module.c
@@ -275,6 +275,9 @@
 {
     int i;
 
+    if (!type) {
+        return;
+    }
     if (module_loaded_qom_all) {
         return;
     }