Drupal 9 compatibility added replace deprecated FilterResponseEvent with ResponseEvent
Closes #3189677