Make the 'format' function ignore nil valued keys in the map.