Issue #2861909 by jonathan1055: Exit early to skip unnecessary processing in hook_form_NODE_FORM_alter