Skip over empty (cf_null) list entries in maplist.

Fixes Redmine #6576, includes acceptance test.
Good idea to add the negative-test for classes >1 being set. Will add.