Added check for blank on name entry

Resolves issue #5747
Since cancel just returns a blank this checks for that and doesn't raise an error.