Fixed PHP warning

PHP Notice:  Undefined offset: 1

in case when 'host' does not include a colon.