[Koha-bugs] [Bug 36590] check_internal_auth does not return a patron and is inconsistent with other authorization routines