Add a null-safe check when a transaction doesn't have a category set