Avoid a fatal error in maintenance/cleanupTitles.php

Title::makeTitleSafe() can return null; so only call
exists() if an object was returned, and otherwise behave
the same way as if the page existed: use another name.

Change-Id: I75ea5c5b25fa5fdf6646a177a5fbccc0dbff9b47