Add update_plot_and_tree_request() helper function

* Changing the return value of update_plot_and_tree() broke some tests
* This also allows removing duplicated code for handling ValidationErrors
Fix a comment