Fixed "PHP Notice: Undefined index: HTTP_HOST"

only in CLI mode
Merge pull request #79 from pvolyntsev/master

Fixed "PHP Notice: Undefined index: HTTP_HOST"