diff --git a/core/src/main/resources/hudson/model/Job/configure.jelly b/core/src/main/resources/hudson/model/Job/configure.jelly
index 119737a505..c1d75c5676 100644
--- a/core/src/main/resources/hudson/model/Job/configure.jelly
+++ b/core/src/main/resources/hudson/model/Job/configure.jelly
@@ -36,10 +36,15 @@ THE SOFTWARE.
${%LOADING}
diff --git a/core/src/main/resources/lib/form/section_.js b/core/src/main/resources/lib/form/section_.js
index 22c7352bc6..5d681463a8 100644
--- a/core/src/main/resources/lib/form/section_.js
+++ b/core/src/main/resources/lib/form/section_.js
@@ -35,7 +35,7 @@ var section = (function (){
* For root node, the 'section' property refers to null.
*/
"buildTree" : function(root) {
- root = $(root);
+ root = $(root||document.body);
/**
* Recursively visit elements and find all section headers.