UI: More Coverity and IntelliJ fixes.