Handle NULL pointers in w32heap.c allocation routines