Prevent blank SM names

... which will effectively prevent BZ#1129718 from happening.

Not sure if you like this, but if not, feel free to close :)