Python: Layout.boundaries() may now throw ValueError if the layout is empty