Issue #218: Failing when authentication routines are called with bad parameters