prevent excessive exceptions

They hide the interesting parts that I'm interested in and are always
thrown so let us avoid them

Change-Id: I532a3fe678de7d3ac0776db23363df5d35c793eb
no need for member variable and bool variable

Change-Id: I58dc22fdec3db8280506a92fe16065cc5482c357
export label names that are strings, fdo#64722, cp#1000058

Change-Id: Id72e9778c70db02b942326c6f8b5f448acb28b41
rename variable

Change-Id: I6ac553172a7c017010d4efa42224f25e2d5537da
add test for fdo#64722, cp#1000058

Change-Id: Idccff4629b8af84e59d52fb3135e9217d3564cb9