fix a crasher when attempting to resize a nested gop by dragging its corner
We were erroneously using canvas_getrootfor instead of glist_getcanvas to find the canvas on which the nested gop was being displayed.
Also added a consistency check to turn such a crasher into a runtime bug in the future.