Fix LTIBasic authentication to handle xmlrpc calls correctly

This fixes a problem in that the LTIBasic authentication module fails to properly handle xmlrpc calls, making the Library Browser and Library Browser 3 mostly useless (and probably other bugs).
The last diff makes LTIBasic tolerate undefined LMS roles when several are given and the first is defined (this can happen to a Sakai administrator).