close dates dialog on invalid save
close dates dialog on invalid save

fixes CNVS-17649

test plan:
  - with DA on
    - edit an assignment and remove the title
    - only assign it to one section and hit save
    - when you hit save the DA dialog opens
    - when you hit save on that, it closes and displays
      the no name error
  - with DA off
    - edit an assignment and remove the title
    - only give a date to one section and hit save
    - when you hit save the dates dialog opens
    - when you hit save on that, it closes and displays
      the no name error

Change-Id: I9e8f5900374f1c80428dba1dc6fafee22c6829b6
Reviewed-on: https://gerrit.instructure.com/46366
Reviewed-by: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
QA-Review: Sean Lewis <e0580b9aacf857d9a3792f1965500f217c0fc9c9@instructure.com>
Product-Review: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>

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