check_beanstalkd.pl: Fixed nagios state calculation