Fix NPE for node under an 'if' statement
Fix NPE for Loop under an 'if' statement