Skip over empty (cf_null) list entries in maplist.

Fixes Redmine #6576, includes acceptance test.
Merge pull request #1982 from vohi/redmine/6576

Skip over empty (cf_null) list entries in maplist.