oops. Variable should be $this->components, not $result.

As for why, that code is executed when URL is schema-relative. Such URLs cannot have port numbers.