Issue #2297875 by herom, bfr: Replace calls to form_set_error() to $form_state->setErrorByName().