webadmin: do not query twice for same thing.

given error message was obtained twice; Even if
second run uses hashmap, this is still suboptimal
for no reason.

Change-Id: I01a09a91f56dbbc0f2577ae0961c872d59149781
Signed-off-by: Martin Mucha <mmucha@redhat.com>