do not allow empty units names to be used

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>