Fixed "$fileTitle is not an object" error in PrettyPhoto::apply() while running maintenance/rebuildall.php script.