Delay output from before hooks in the gherkin_formatter_adapter

Then the JSON formatter will not crash on before hooks output.
TODO: Remove this fix when the JSON formatter (in the Gherkin library)
has been fixed.