Update TitleManager.php

Fix notices
Merge pull request #1 from Tlapi/patch-1

Update TitleManager.php