Ruby filter inline code keeps logstash to restart

@Badger i was able to correct the ruby code. Thanks for the pointer nil.
If a field is not defined, and used in condition ruby filter throws error.