Fixed incorrect isinstance check in LayoutPlot __len__ method