[BUGFIX] NULL HTTP_HOST after parse_url() causes form invalidation

This fix adds an additional check if the HTTP_HOST is NULL after parse_url() call.
The refererHost will be compared against the raw value then.