frontend: Fix Coverity Scan defect in UiCommon test

Change-Id: Ie8bf598c928ed5530a050df45727033c6ff6f464
Signed-off-by: Martin Betak <mbetak@redhat.com>