Fix for Atom Feed when $tag->content is an array

If $tag->content is an array the foreach destroys the closing tag.