Can `getattr()` fail to return a result here? Not sure how Django models would deal w/ that. This does at least prevent writing empty strings to the JSON.