d2b498a3ba
Since traits are now an optional field in the metadata, add nil checks when using them
Since traits are now an optional field in the metadata, add nil checks when using them