Avoided calling addKeys with empty key collections.