Bugfix at connection check in BeanstalkdQueueImplementation