api/uniter: validate unit name before relation-get

Backported from trunk.

The name of the unit passed in from the cli is not a string form of a tag so we have to validate that it actaully is a unit name (the id part of a unit tag).

Fixes: https://bugs.launchpad.net/bugs/1365412