Added check for blank on name entry
Since cancel just returns a blank this checks for that and doesn't raise an error.
Changes check to an isnull rather than a truth test
This allows the client to detect the difference between a blank and someone pressing cancel.
Merge pull request #5771 from JimTheCactus/name_fix

Added check for blank on name entry