address minor conditions identified by Coverity

Thanks: https://scan.coverity.com/