guard against names that are None
Merge branch 'casenmae' into nametest
more exlicit test
Merge pull request #4457 from dimagi/nametest

test for empty case name