Fixes the new AI lawcap config option

Previously, it would include null entries in some of the lists, which
meant that the total law amount would be grossly exaggerated.

Fixes #5846
Merge pull request #6188 from tkdrg/miauwpls

Fixes the new AI lawcap config option