fix submitting on assignment with # in url
fix submitting on assignment with # in url

  added if statement to catch urls with lone #'s at the end when
  submitting assignments

  fixes CNVS-15812

  Test Plan:
  -Navigate to a published file upload assignment as a student.
  -Submit the assignment with a file.
  -Notice it succeeds.
  -Add a #<any text here> to the end of the assignment url so it should
  look like this: /assignments/:id/#<your text here> and refresh the
  the page until it actually reloads.
  -Submit the assignment again.
  -Notice it submits successfully
  -Navigate to /assignments/:id/# (make sure it actually reloads the page)
  -Submit the assignment.
  -The page should refresh and the Submit section of the page should have disappeared.
  

Change-Id: Ic81b4e7e51de96a20f7eae8c2fa609b82be6965a
Reviewed-on: https://gerrit.instructure.com/41756
Reviewed-by: Mike Nomitch <74443f6f110b6b7b934c89126258ed3d843d673f@instructure.com>
QA-Review: Amber Taniuchi <ef4bfd1e6d278f6bc7d4a478f02be2cb9581a0a5@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Product-Review: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>

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