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 properly.