Reorder tearDownAfterClass() to work around $title destruction

Functions like $title->getArticleID() cease to work once the WikiPage
with which $title is associated is deleted. So we need to

Change-Id: I6ecebe3c0ee10a379d4f10d5d852de627a73f5f9