Improved modal cancel

Now it will only bring up the assurance screen if and only if
something has been filled out. This way, if they haven't entered
anything in the form, they aren't bothered with an annoying message.