added if statement to check that committee terms has a latest committee node