Fix bug in the `ports` tool when there are no results for a specified entity