Fix conversions to bool with leading zeros (refs #9659)