Calling getContent() on XF:NewsFeed entity will throw this exception ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/XF/Repository/Attachment.php:198 if the content does not exist.