winhttp: Check for the end of the text when stripping trailing newlines from headers (ASan). Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>