diff --git a/client/js/jquery-plugin.js b/client/js/jquery-plugin.js
index <HASH>..<HASH> 100644
--- a/client/js/jquery-plugin.js
+++ b/client/js/jquery-plugin.js
@@ -164,7 +164,7 @@
         retVal = uploader()[command].apply(uploader(), xformedArgs);
 
         // If the command is returning an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object
-        if(typeof retVal === "object"
+        if(retVal != null && typeof retVal === "object"
             && (retVal.nodeType === 1 || retVal.nodeType === 9)
             && retVal.cloneNode) {
fix(client/js/jquery-plugin.js): of course, typeof null === "object"