message_edit: Check resolve topic notifications earlier.
message_edit: Check resolve topic notifications earlier.

This will have no real effect in most situations. However, a user
moves a topic to another stream while also adding/removing the
resolved-topic checkmark from the topic name, then the "This topic was
resolved" notificaiton will now appear just before the "This topic was
moved" notification rather than just after.

This is likely slightly less confusing to users, since the topic
having been moved from somewhere else is likely the most salient fact
to a reader.

We expect to change things to not send both notifications in an
upcoming commit.

This refactoring helps with #21712.

rht/zulip,andersk/zulip,zulip/zulip,zulip/zulip,zulip/zulip,zulip/zulip,andersk/zulip,andersk/zulip,rht/zulip,andersk/zulip,andersk/zulip,andersk/zulip,zulip/zulip,rht/zulip,rht/zulip,zulip/zulip,zulip/zulip,rht/zulip,rht/zulip,andersk/zulip,rht/zulip