Fixed some race conditions and other issues found during testing for BZ#1036895 - Creating a new topic does not reset the revision history