Fix Platform::New to return nullptr on failure (#5008)
Fix Platform::New to return nullptr on failure (#5008)

#### Problem

`Platform::New()` uses placment `new` into a possibly-null pointer.

#### Summary of Changes

Check it.

Fixes #4998 platform::New will crash or do other bad things on allocation failure
project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip