It used old code where the spray was inside a container panel.
The container panel isn't used anymore, calling GetParent would mistakenly remove the DIconLayout
Preview panels (such as the ones in the /spraymesh menu) will now attempt to cache DHTML panels, so they don't have to be redownloaded every time the user opens the panel.