BS-10789 : fix unstable test GatewayExecutionTest.processWithParallelGatewaySplit

- Replace old mechanism to check task on database by the new with the event