webadmin: Slight refactoring

An if clause was ill-formatted and another variable name wasn't quite
right.

Change-Id: Icd25f099e634c8017123820e4cf21daf6548122b
Signed-off-by: Lior Vernia <lvernia@redhat.com>