Skip over empty (cf_null) list entries in maplist.

Fixes Redmine #6576, includes acceptance test.