/* check variant links so that interwiki links don't have to worry about
the possible different language variants
*/
- if( $wgTitle->getArticleID() == 0 )
+ if( !is_null($wgTitle) && $wgTitle->getArticleID() == 0 )
$wgContLang->findVariantLink( $title, $wgTitle );
}