Fix regression in vQueueAddToRegistry. (#315)

diff --git a/queue.c b/queue.c
index a60c6ca..96065d0 100644
--- a/queue.c
+++ b/queue.c
@@ -2755,7 +2755,7 @@
             }

         }

 

-        if( pxEntryToWrite == NULL )

+        if( pxEntryToWrite != NULL )

         {

             /* Store the information on this queue. */

             pxEntryToWrite->pcQueueName = pcQueueName;