[ticket/12370] Do not delete topic notifications when the topic is visible

We should only delete the topic notifications, when the topic is not approved
anymore. This happens, when the post was the last approved but is now
unapproved because the user is on queue, or when it has been softdeleted while
editing.

http://tracker.phpbb.com/browse/PHPBB3-12370