Only use the name option if it is a string

[closes #1778]