Add warning when key is nil

Hey Erik,

Let me know if there is anything I can do to improve this PR. There is one thing I would like to ask you about, I noticed when I run rspec enough sometimes the tests fail but I can't exactly understand why. 

If you do `rspec --seed 32984`, you'll see what I'm talking about. Thoughts?