in case $_SERVER['HTTP_HOST']) is not set let's return localhost - bette...

...r than nothing

@RealRancor @MTGap @icewind1991 @bartv2 @butonic THX