LP#1849212: (follow-up) numerous fixes to open-ils.courses.detach_material