WIKI-597 NullPointerException while update title of wiki page to same title with a removed page

Problem analysis: history of renamed page is broken when the page was deleted
Solution: Update new history entry properly