fix PREFAST (windows static analysis) warnings about possible NULL derefs. #3590