Crash fix on empty dicts.