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,narigone/canvas,AndranikMarkosyan/lms,gbleydon/canvas-lms,fronteerio/canvas-lms,ShreniiNepal/shrenii_lmp,AndranikMarkosyan/lms,samuels410/greatlakes-lms,antoniuslin/canvas-lms,ShreniiNepal/shrenii_lmp,jay3126/canvas-lms,grahamb/canvas-lms,leftplusrightllc/canvas-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,dgynn/canvas-lms,whalejasmine/canvas-lms,djbender/canvas-lms,narigone/canvas,djbender/canvas-lms,utkarshx/canvas-lms,matematikk-mooc/canvas-lms,fronteerio/canvas-lms,Jyaasa/canvas-lms,gbleydon/canvas-lms,greyhwndz/canvas-lms,skmezanul/canvas-lms,wrdsb/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,whalejasmine/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,eCNAP/CANVAS,djbender/canvas-lms,matematikk-mooc/canvas-lms,efrj/canvas-lms,samuels410/greatlakes-lms,redconfetti/canvas-lms,greyhwndz/canvas-lms,venturehive/canvas-lms,utkarshx/canvas-lms,ShreniiNepal/shrenii_lmp,dgynn/canvas-lms,HotChalk/canvas-lms,juoni/canvas-lms,redconfetti/canvas-lms,eCNAP/CANVAS,wye0220/shindig-canvas,kyroskoh/canvas-lms,SwinburneOnline/canvas-lms,fronteerio/canvas-lms,AndranikMarkosyan/lms,matematikk-mooc/canvas-lms,narigone/canvas,venturehive/canvas-lms,dgynn/canvas-lms,jay3126/canvas-lms,greyhwndz/canvas-lms,grahamb/canvas-lms,redconfetti/canvas-lms,Rvor/canvas-lms,grahamb/canvas-lms,jay3126/canvas-lms,gbleydon/canvas-lms,snehakachroo1/LSI_replica,shidao-fm/canvas-lms,eCNAP/CANVAS,HotChalk/canvas-lms,tgroshon/canvas-lms,instructure/canvas-lms,Jyaasa/canvas-lms,va7map/canvas-lms,tgroshon/canvas-lms,efrj/canvas-lms,utkarshx/canvas-lms,AndranikMarkosyan/lms,Jyaasa/canvas-lms,kyroskoh/canvas-lms,wrdsb/canvas-lms,tgroshon/canvas-lms,antoniuslin/canvas-lms,shidao-fm/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,va7map/canvas-lms,leftplusrightllc/canvas-lms,jay3126/canvas-lms,antoniuslin/canvas-lms,venturehive/canvas-lms,roxolan/canvas-lms,kyroskoh/canvas-lms,SwinburneOnline/canvas-lms,Jyaasa/canvas-lms,instructure/canvas-lms,wye0220/shindig-canvas,venturehive/canvas-lms,leftplusrightllc/canvas-lms,samuels410/greatlakes-lms,roxolan/canvas-lms,instructure/canvas-lms,wrdsb/canvas-lms,Rvor/canvas-lms,instructure/canvas-lms,greyhwndz/canvas-lms,instructure/canvas-lms,grahamb/canvas-lms,leftplusrightllc/canvas-lms,shidao-fm/canvas-lms,antoniuslin/canvas-lms,samuels410/greatlakes-lms,djbender/canvas-lms,grahamb/canvas-lms,efrj/canvas-lms,dgynn/canvas-lms,juoni/canvas-lms,HotChalk/canvas-lms,SwinburneOnline/canvas-lms,kyroskoh/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,efrj/canvas-lms,Rvor/canvas-lms,eCNAP/CANVAS,sfu/canvas-lms,HotChalk/canvas-lms,fronteerio/canvas-lms,va7map/canvas-lms,sdeleon28/canvas-lms,skmezanul/canvas-lms,tgroshon/canvas-lms,redconfetti/canvas-lms,whalejasmine/canvas-lms,va7map/canvas-lms,SwinburneOnline/canvas-lms,snehakachroo1/LSI_replica,whalejasmine/canvas-lms,roxolan/canvas-lms,sfu/canvas-lms,sdeleon28/canvas-lms,shidao-fm/canvas-lms,Rvor/canvas-lms,narigone/canvas,juoni/canvas-lms,snehakachroo1/LSI_replica,roxolan/canvas-lms,matematikk-mooc/canvas-lms,snehakachroo1/LSI_replica,sfu/canvas-lms,sdeleon28/canvas-lms,wrdsb/canvas-lms,ShreniiNepal/shrenii_lmp,wye0220/shindig-canvas