Coverity fixes

Fix both newly detected Coverity issues, both are fairly simple :)