Invalid argument supplied for foreach() in FormatMetadata.php on line 1566

Bug: 56585
Change-Id: I5f65333cc94b66fd80fcf5abcfad7e10e4669310
(cherry picked from commit 747d0e5f539ea067212eb7f79816936bc017516d)