Updated IF statement to handle user clicking the cancel button, instead ...

...of it throwing out the case number issue error.