bugfix: extra closing DIV if no media attached to a post