If Special:RandomPage and alikes find no page to return, they tell: There are no pages in the namespace "" (even if the namespace is not main), and spit a warning like:
Notice: Undefined property: RandomPage::$namespace in C:\Projects\MediaWiki\includes\specials\SpecialRandompage.php on line 47
Version: 1.16.x
Severity: normal