Fix NullPointerException when refreshing the Parse Tree window