Debug Console Coverity fixes

This is a bunch fairly minor fixes for "issues" introduced by the new debug console code.