Resolves issue #5747. Added check for blank on name entry

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