fix looking up enrollment status with no course or section; refs #4996
fix looking up enrollment status with no course or section; refs #4996

Change-Id: I98b0dfd2ba641e996843a1c2ec9f2872ea91c081
Reviewed-on: https://gerrit.instructure.com/5248
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Tested-by: Hudson <dfb64870173313a9a7b56f814c8e3b33e268497a@instructure.com>

jay3126/canvas-lms,skmezanul/canvas-lms,SwinburneOnline/canvas-lms,grahamb/canvas-lms,efrj/canvas-lms,wrdsb/canvas-lms,nditech/red-innovadores-lms,loganrun/pincan,redconfetti/canvas-lms,tgroshon/canvas-lms,fronteerio/canvas-lms,leftplusrightllc/canvas-lms,narigone/canvas,dgynn/canvas-lms,djbender/canvas-lms,rup/Tarrax,icelab/canvas,shidao-fm/canvas-lms,kyroskoh/canvas-lms,nditech/red-innovadores-lms,parbros/red-innovadores-lms,HotChalk/canvas-lms,arrivu/hoodemo,landonwilkins/canvas-lms,eCNAP/CANVAS,narigone/canvas,parbros/red-innovadores-lms,greyhwndz/canvas-lms,ottenhoff/canvas-lms,instructure/canvas-lms,SwinburneOnline/canvas-lms,ShreniiNepal/shrenii_lmp,utkarshx/canvas-lms,narigone/canvas,snehakachroo1/LSI_replica,samuels410/greatlakes-lms,skmezanul/canvas-lms,faraazkhan/canvas,AndranikMarkosyan/lms,shidao-fm/canvas-lms,arrivu/hiring-site,snehakachroo1/LSI_replica,rup/Tarrax,Unow/ins,whalejasmine/canvas-lms,AndranikMarkosyan/lms,arrivu/hoodemo,usmschuck/canvas,instructure/canvas-lms,utkarshx/canvas-lms,grahamb/canvas-lms,samuels410/greatlakes-lms,samuels410/greatlakes-lms,venturehive/canvas-lms,icelab/canvas,roxolan/canvas-lms,ottenhoff/canvas-lms,arrivu/arrivu-lms,ankithbti/canvas_lms,whalejasmine/canvas-lms,grahamb/canvas-lms,ankithbti/canvas_lms,wrdsb/canvas-lms,wye0220/shindig-canvas,faraazkhan/canvas,narigone/canvas,va7map/canvas-lms,matematikk-mooc/canvas-lms,icelab/canvas,antoniuslin/canvas-lms,instructure/canvas-lms,HotChalk/canvas-lms,utkarshx/canvas-lms,roxolan/canvas-lms,AndranikMarkosyan/lms,jay3126/canvas-lms,leftplusrightllc/canvas-lms,tgroshon/canvas-lms,matematikk-mooc/canvas-lms,Rvor/canvas-lms,instructure/canvas-lms,jay3126/canvas-lms,kyroskoh/canvas-lms,va7map/canvas-lms,sfu/canvas-lms,arrivu/qibla-ecampus,usmschuck/canvas,Unow/ins,juoni/canvas-lms,landonwilkins/canvas-lms,arrivu/jigsaw-lms,nditech/red-innovadores-lms,fronteerio/canvas-lms,ankithbti/canvas_lms,HotChalk/canvas-lms,arrivu/arrivu-lms,kyroskoh/canvas-lms,ottenhoff/canvas-lms,samuels410/greatlakes-lms,SwinburneOnline/canvas-lms,em2/canvas-lms,redconfetti/canvas-lms,matematikk-mooc/canvas-lms,Jyaasa/canvas-lms,juoni/canvas-lms,va7map/canvas-lms,wye0220/shindig-canvas,snehakachroo1/LSI_replica,arrivu/jigsaw-lms,ShreniiNepal/shrenii_lmp,arrivu/hoodemo,skmezanul/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,wimemx/Canvas,sdeleon28/canvas-lms,Jyaasa/canvas-lms,roxolan/canvas-lms,wrdsb/canvas-lms,loganrun/pincan,eCNAP/CANVAS,shidao-fm/canvas-lms,arrivu/qibla-ecampus,grahamb/canvas-lms,gbleydon/canvas-lms,fronteerio/canvas-lms,fronteerio/canvas-lms,sdeleon28/canvas-lms,wrdsb/canvas-lms,arrivu/jigsaw-lms,Unow/canvas-lms,dgynn/canvas-lms,venturehive/canvas-lms,landonwilkins/canvas-lms,antoniuslin/canvas-lms,merichar/canvas-lms,sdeleon28/canvas-lms,sfu/canvas-lms,wimemx/Canvas,sfu/canvas-lms,greyhwndz/canvas-lms,AndranikMarkosyan/lms,Unow/ins,nditech/red-innovadores-lms,wimemx/Canvas,loganrun/pincan,ShreniiNepal/shrenii_lmp,juoni/canvas-lms,usmschuck/canvas,greyhwndz/canvas-lms,arrivu/qibla-ecampus,instructure/canvas-lms,Rvor/canvas-lms,sdeleon28/canvas-lms,djbender/canvas-lms,dgynn/canvas-lms,arrivu/arrivu-lms,sfu/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,arrivu/hiring-site,gbleydon/canvas-lms,redconfetti/canvas-lms,wye0220/shindig-canvas,roxolan/canvas-lms,Unow/canvas-lms,Jyaasa/canvas-lms,ShreniiNepal/shrenii_lmp,utkarshx/canvas-lms,matematikk-mooc/canvas-lms,greyhwndz/canvas-lms,venturehive/canvas-lms,antoniuslin/canvas-lms,whalejasmine/canvas-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,efrj/canvas-lms,antoniuslin/canvas-lms,Rvor/canvas-lms,skmezanul/canvas-lms,merichar/canvas-lms,va7map/canvas-lms,efrj/canvas-lms,juoni/canvas-lms,rup/Tarrax,Unow/canvas-lms,whalejasmine/canvas-lms,grahamb/canvas-lms,snehakachroo1/LSI_replica,efrj/canvas-lms,HotChalk/canvas-lms,sli7246/canvas_branch,tgroshon/canvas-lms,dgynn/canvas-lms,arrivu/hiring-site,shidao-fm/canvas-lms,venturehive/canvas-lms,gbleydon/canvas-lms,em2/canvas-lms,sli7246/canvas_branch,em2/canvas-lms,Jyaasa/canvas-lms,djbender/canvas-lms,landonwilkins/canvas-lms,eCNAP/CANVAS,usmschuck/canvas,eCNAP/CANVAS,faraazkhan/canvas,instructure/canvas-lms,merichar/canvas-lms,leftplusrightllc/canvas-lms,parbros/red-innovadores-lms,sfu/canvas-lms,kyroskoh/canvas-lms,tgroshon/canvas-lms,sli7246/canvas_branch,redconfetti/canvas-lms,Rvor/canvas-lms,jay3126/canvas-lms