Make __str__ work for records without an _id field