[fix minor] Do not throw when `.keys` is undefined.