Re-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object

applied on top of Ia2107dc

Change-Id: I7420b9ec9df2ebd8e983fddfc7ee17655788cfde
Merge "Re-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object"