quiet covertity warning for #3894 by removing unnecessary NULL check.
===VersionHistory:None===