Fixes #6322, Checks correctly if there are discussions needing upgrade

The subtype of discussion objects does not change during the upgrade so we need to check for existing annotations of type "group_topic_post" instead.