Fix overoptimization introduced in a2bcc741ff6 where two empty mappings could be considered different in some cases (observed in the JSON testsuite).