Fix _parse_value always returning 0 when not true, false or None.
Merge pull request #6831 from aresch/patch-1

Fix _parse_value always returning 0 when not true, false or None.