fix for undefined method + for nil:NilClass for invalid paramters
Merge pull request #1256 from colinsurprenant/LOGSTASH-2024

fix for undefined method + for nil:NilClass for invalid paramters