The `$map()` function does not remove empty elements. This is inconsistent with other multi-value variable processing.
See code changes in pull request #1790 submitted by rdswift.
See code changes in pull request #1790 submitted by rdswift.