Currently there is a traceback when trying to leave a course (unsubscribe) from the frontend on the homepage of a specific course. (when clicking on "You're enrolled") This fixes the traceback. closes odoo/odoo#37384 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>