Prevent attribute values from being null