index.php: Disable invalid titles instead of hiding them

And fix Texts::updateAllTitles(): formats of returned data from
Texts::listTitles() changed
Check titles in Users::addUser()