Bugfix for when attachment.thumbnails is undefined