ui: Fix dropping to console on exception

Due of an incorrect import dropping to the console in case of an
exception lead to another exception.

Change-Id: I61cb71b5e591307b30885d3117f31b07fa832e20
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>