Added `0` check in validate_boolean.