Logged the potential null children nodes and return as suggested.