fix IndexError when a post has no tags