Automate generation of non-public version of extension
Don't add link if there are no posts

Only add the scroll to last post link in group discussion pages if there is at least one post. Fixes #1