Minor fixes for issues highlighted by Coverity.

Just a couple of minor issues that were flagged by the Coverity check.