UI: Fix some Coverity issues.