Fixed an issue with parsing an empty port.