Fixed some false positive clang analysis warnings.