Fixed a bug when deleting the latest topic in a forum