Conditionals for output are broken in master

As stated in super documented and explored [LOGSTASH-2288](https://logstash.jira.com/browse/LOGSTASH-2288) by @DanielRedOak, current master fails when using conditionals in output block.
Here is a simple testcase and a fix proposal
@jordansissel can you please review