Fixed bug that killed the app if no attachments were found on a content type.