Fix possible bug in nullable setter without appropriate type check.