templater: fix truth testing of integer 0 taken from a list/dict
Broken at f9c426385853. bool(python_value) shouldn't be used here since
an integer 0 has to be truthy for backward compatibility.
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors