Error in accessing the course:SAMPLE0001['NoneType' object has no attribute 'lang_code']