jaxrs: better error handling for tag definition creation

Check name and description attributes are non-NULL as early as possible
to avoid throwing a runtime exception from the transaction back to the
client.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>