Adopt handling of null ptr in ResizeMemory() from AllocateMemoryDebug()