Update `WebServer` implementations to return -1 from `getPort()` if the server isn't listening on a port. This aligns the implementations with the interface Javadoc. See gh-24606
Update `WebServer` implementations to return -1 from `getPort()` if the server isn't listening on a port. This aligns the implementations with the interface Javadoc. See gh-24606