Fix key error exception

Pair programmed with @Vagabond.

Grabbing a value with [] syntax will throw an exception
if the key doesn't exist. So we safely grab it with 'get'.
Merge pull request #25 from basho/fix-key-error-with-test-ref

Fix key error exception