BUG: Fix #3585. Python bool('string') == True for any non-empty string

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22891 3bd1e089-480b-0410-8dfb-8563597acbee