Fixed conversion of null to boolean