WARNING: I have no clue why this change is needed or how it works

I was getting *some* pages without bg color, and turned out
somhow the $modules[$mod] array was being lost.  This seems
to fix it.  But I absolutely have no idea why.  Probably
something with my current version of PHP :(?