daveg: guarding against iterating through extra keys when doing a key validation check.