[9.4](backport #50555) fix(otel): fix beatprocessor to honor when conditions
#50561
+185
−7
when conditions
#50561