#5676 if a toMap fails logg it and continue