Reverse proxy error fix

Added missing check for `$_SERVER['HTTP_X_FORWARDED_PROTO']` existence
Merge pull request #282 from nazar-pc/master

Reverse proxy error fix