Fix a bug in lesson show view due to emtpy lesson