don't attempt to set the i18n scope if the template has no virtual path
don't attempt to set the i18n scope if the template has no virtual path

this ensures 404 pages don't result in 500 pages

test plan:
1. go to /assets/common_legacy_normal_contrast.js
2. you should see a 404 page instead of a 500 page

Change-Id: I710c05fdf97b6f5ff337706798cad415fedc4bc3
Reviewed-on: https://gerrit.instructure.com/39570
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
QA-Review: Clare Strong <40d6bb3ed7fef516c73274131d5a837c16de74fd@instructure.com>
Product-Review: Jon Jensen <44f878afe53efc66b76772bd845eb65944ed8232@instructure.com>

sdeleon28/canvas-lms,wrdsb/canvas-lms,SwinburneOnline/canvas-lms,samuels410/greatlakes-lms,grahamb/canvas-lms,utkarshx/canvas-lms,roxolan/canvas-lms,whalejasmine/canvas-lms,va7map/canvas-lms,Rvor/canvas-lms,tgroshon/canvas-lms,fronteerio/canvas-lms,jay3126/canvas-lms,skmezanul/canvas-lms,shidao-fm/canvas-lms,whalejasmine/canvas-lms,HotChalk/canvas-lms,sfu/canvas-lms,sdeleon28/canvas-lms,wrdsb/canvas-lms,kyroskoh/canvas-lms,SwinburneOnline/canvas-lms,HotChalk/canvas-lms,grahamb/canvas-lms,venturehive/canvas-lms,Rvor/canvas-lms,venturehive/canvas-lms,roxolan/canvas-lms,Jyaasa/canvas-lms,kyroskoh/canvas-lms,redconfetti/canvas-lms,whalejasmine/canvas-lms,leftplusrightllc/canvas-lms,jay3126/canvas-lms,wye0220/shindig-canvas,efrj/canvas-lms,utkarshx/canvas-lms,greyhwndz/canvas-lms,samuels410/greatlakes-lms,Jyaasa/canvas-lms,sfu/canvas-lms,roxolan/canvas-lms,wye0220/shindig-canvas,fronteerio/canvas-lms,sfu/canvas-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,shidao-fm/canvas-lms,sfu/canvas-lms,va7map/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,juoni/canvas-lms,shidao-fm/canvas-lms,leftplusrightllc/canvas-lms,utkarshx/canvas-lms,sfu/canvas-lms,ShreniiNepal/shrenii_lmp,SwinburneOnline/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,grahamb/canvas-lms,Jyaasa/canvas-lms,redconfetti/canvas-lms,SwinburneOnline/canvas-lms,wye0220/shindig-canvas,sdeleon28/canvas-lms,va7map/canvas-lms,skmezanul/canvas-lms,antoniuslin/canvas-lms,ShreniiNepal/shrenii_lmp,roxolan/canvas-lms,antoniuslin/canvas-lms,venturehive/canvas-lms,Rvor/canvas-lms,kyroskoh/canvas-lms,whalejasmine/canvas-lms,fronteerio/canvas-lms,sdeleon28/canvas-lms,skmezanul/canvas-lms,djbender/canvas-lms,antoniuslin/canvas-lms,utkarshx/canvas-lms,va7map/canvas-lms,grahamb/canvas-lms,juoni/canvas-lms,djbender/canvas-lms,grahamb/canvas-lms,fronteerio/canvas-lms,samuels410/greatlakes-lms,greyhwndz/canvas-lms,ShreniiNepal/shrenii_lmp,antoniuslin/canvas-lms,greyhwndz/canvas-lms,leftplusrightllc/canvas-lms,tgroshon/canvas-lms,sfu/canvas-lms,jay3126/canvas-lms,Jyaasa/canvas-lms,skmezanul/canvas-lms,Rvor/canvas-lms,HotChalk/canvas-lms,juoni/canvas-lms,leftplusrightllc/canvas-lms,juoni/canvas-lms,kyroskoh/canvas-lms,wrdsb/canvas-lms,efrj/canvas-lms,tgroshon/canvas-lms,efrj/canvas-lms,samuels410/greatlakes-lms,tgroshon/canvas-lms,greyhwndz/canvas-lms,efrj/canvas-lms,wrdsb/canvas-lms,shidao-fm/canvas-lms,jay3126/canvas-lms,redconfetti/canvas-lms,HotChalk/canvas-lms