mm/huge_memory.c: fix potential NULL pointer dereference