Throw exception on blank/empty resource name.

Without this, submitting the form with just a space tries to create a
blank resource and completely breaks apigility (all API requests return
500 errors, etc because the config is corrupt with bad values).

This is really just a temporary shim for usability, but ultimately we
should do some real validation here.