             }
             else
             {
+                if (callback != null)
+                    callback(null);
+            }
+        }
+        else
+        {
+            if (callback != null)
                 callback(null);
-            }
-        }
-        else
-        {
-            callback(null);
         }
     }
 

                {
                    if (value == undefined || value is Error)
                    {
                        callback(null);
                    }
                    else
                    {
                        callback(new Response(head, value));
                    }
                };


            {
                if (value == undefined || value is Error)
                {
                    if (callback != null)
                        callback(null);
                }
                else
                {
                    if (callback != null)
                        callback(response);
                }
            };

