Fix KeyError on 'Authorization' 

Fixes #237 by checking if the key exists before attempting to assert using that key.