fix traceback when poolstash is empty