Validates if a value is null.