Avoid core dump with nonexistent lesson