`toLowerCase` a string or an empty one

agent.name could somehow be `null` and will cause `buster-server-cli` to exit.

The solution is to make sure the agent.name is truthy before invoking `toLowerCase`.