Don't array_merge the generated event output if the generation failed

Fix for #234