Fix for a bug, and a terrible temporary hack in formatDealData to deal with deals with no category set