Make sure HttpVersion checks if the version string is not empty

.. which was the behavior in 3.x.