handling non-existent attachments for online resources