Fix #932 "Undeclared variable in XPath expression: $form-resources"