Squash coverity warning about redundant null pointer check. Coverity 1061552
Fix coverity warning about unchecked return value. Coverity 1135492