Remove dictOrEmpty helper.

The `dictOrEmpty` helper is not necessary. I replaced most calls with a `dict.get` without a default value, because the empty string were not used.