Fix conversion of empty dictionary.