$cache = $this->mTitle->getBacklinkCache();
$batches = $cache->partition( 'templatelinks', $wgUpdateRowsPerJob );
+ if ( !$batches ) {
+ wfProfileOut( __METHOD__ );
+ return;
+ }
$jobs = array();
foreach ( $batches as $batch ) {
list( $start, $end ) = $batch;