Fix ``pip list`` when there is an invalid PEP 440 version installed
Merge pull request #2236 from dstufft/fix-pip-list-invalid-version

Fix ``pip list`` when there is an invalid PEP 440 version installed