Invalid argument supplied for foreach() in ApiQueryGadgets.php on line 58

Gadget::loadStructuredList() can return false

Bug: 53829
Change-Id: I11f0531711cb431fa9f44c0fece527aea82f6a5a