fix broken modal when saving reports that don't use dateranges

tiny cleanup elsewhere
Merge pull request #1601 from dimagi/cz

fix broken modal when saving reports that don't use dateranges