Handle the case when an exception is thrown inside get_logstash_results

Hi,
I fell in a situation where elasticsearch was not running and an unhandled exception caused undelivered nagios notification emails. The exact error in nagios-herald log was [FATAL] can't convert String into Integer (TypeError). This is a simple workaround but you can enrich it as much as you want of course.

Regards