Handle invalid pod name

When entering invalid pod name for getting container logs, "Pod not found" will be returned.
I don't understand - you create an empty string and pass that to a function - why?