Fixed crash when not entering a port number.