fixed setPort if no port or scheme is detected
Merge pull request #74 from JanMalte/patch-1

fixed setPort if no port or scheme is detected