This patch fixes JIRA LOGSTASH-2053.

An empty array breaks the plugin :(