Set name to undefined when its not a string
add test
Merge pull request #45 from bugsnag/name-null

Set name to undefined when its not a string