get node from form_state
allow nulls for target