Remove duplicated node !== null

Small cleanup