Not break when there are no plugins in the plugin dir

Fix for https://logstash.jira.com/browse/LOGSTASH-1324