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'.