Handle null HashMap entries in implodeMap()