Yeah, I had collections and apps names in mind when I wrote this (see https://bugzilla.mozilla.org/show_bug.cgi?id=915612 and all the apps with empty names bugs), but you're right, this shouldn't be done here. 

I guess the real thing would be to not care about empty here, just strip, and validate elsewhere if/when needed. This could be handled in https://bugzilla.mozilla.org/show_bug.cgi?id=915612