win32text: fix obvious null pointer dereference