diff --git a/www/sites/all/modules/contrib_patched/webform/includes/webform.conditionals.inc b/www/sites/all/modules/contrib_patched/webform/includes/webform.conditionals.inc
index 270bf75..61f0f2c 100644
--- a/www/sites/all/modules/contrib_patched/webform/includes/webform.conditionals.inc
+++ b/www/sites/all/modules/contrib_patched/webform/includes/webform.conditionals.inc
@@ -820,7 +820,7 @@ function webform_conditional_prepare_javascript($node, $submission_data) {
   $operators = webform_conditional_operators();
   foreach ($node->webform['conditionals'] as $conditional) {
     // Assemble the main conditional group settings.
-    if ($conditional['target_type'] == 'component') {
+    if ($conditional['target_type'] == 'component' && isset($node->webform['components'][$conditional['target']])) {
       $target_component = $node->webform['components'][$conditional['target']];
       $target_parents = webform_component_parent_keys($node, $target_component);
       $target_id = 'webform-component--' . str_replace('_', '-', implode('--', $target_parents));
@@ -830,7 +830,7 @@ function webform_conditional_prepare_javascript($node, $submission_data) {
     }
     // Add on the list of rules to the conditional group.
     foreach ($conditional['rules'] as $rule) {
-      if ($rule['source_type'] == 'component') {
+      if ($rule['source_type'] == 'component' && isset($node->webform['components'][$rule['source']])) {
         $source_component = $node->webform['components'][$rule['source']];
         $source_parents = webform_component_parent_keys($node, $source_component);
         $source_id = 'webform-component--' . str_replace('_', '-', implode('--', $source_parents));
