Fixing KeyError on authweb

fix #242