Added assertions against null pointers in node children