Fix return statement while scanning for cids.

This PR fixes an early return while scanning for content CIDs in mail messages. This issue leads to bad links for cid-referenced image-attachments in html-mails.