WP-1985: Fix ajax error by adding patch to drupal core.