You’re confusing Humphrey with McGovern. Humphrey did not lose 49 states in 1968 when he ran for president.
You are correct. He still was a socialist.
Wiki: The Johnson-Humphrey ticket won the election overwhelmingly, with 486 electoral votes out of 538.