API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
FormValidator::doValidateForm()'s $form_id parameter is only present on the initial call to the method, which receives the entire form array as the $element, and not on recursive calls. This should be documented on the parameter.