Fix commit 567efd6 so it works with custom web server ports.

This fixes an issue introduced in commit 567efd6 that broke PlexConnect when used with a custom web server port.