Fix for Scene.getDebugHTML (incorrect references caused no layers to be shown after we removed pointers from layer boundaries)