Issue #2986079 by benoit.borrel, alexpott, tim.plunkett, msankhala: Use KernelEvent's isMasterRequest() method instead of HttpKernelInterface's constant