Fixed form_state object change from Drupal core.