QML debugger: Fix remote debugging with port forwarding involved.

Full explanation inside.

Change-Id: Ib39f18282b7d78ebdab53ac2ebe9d4cf1e11c008
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>