Surface sampling with empty surfaces
With the revised surface sampling that can also store surfaces, the behaviour with empty or failed surfaces is probably not updated as it should be. The loop is optimized to avoid sampling/writing with empty surfaces, but this means that storage is also skipped - meaning that the stored surface will not be updated if it has no faces. Instead they should probably be set to an empty surface on the registry.