Filter non-empty or null attribute values