Match null queue check for vkGetDeviceQueue
diff --git a/loader/trampoline.c b/loader/trampoline.c
index 13df6f4..ebfacbc 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -864,7 +864,7 @@
     disp = loader_get_dispatch(device);
 
     disp->GetDeviceQueue(device, queueNodeIndex, queueIndex, pQueue);
-    if (pQueue != NULL) {
+    if (pQueue != NULL && *pQueue != NULL) {
         loader_set_dispatch(*pQueue, disp);
     }
 }