Replace <empty-collection-error> with <key-error>.