Check for error before testing JWT challenge success
Check for error before testing JWT challenge success

(fixes #1295)

bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop