Fixes #17 crash when parsing empty port