When a file is initially loaded or when the redo panel is used, the PBVH may be null on an object. Because this filter requires the PBVH to check the underlying mesh representation to prevent execution on Dyntopo & Multires, we need to ensure that the PBVH is built. This commit changes the `pbvh_get` call into a `pbvh_ensure` call and moves some variable declarations around to avoid holding onto runtime data that may get wiped out by requesting the evaluated depsgraph. Pull Request: https://projects.blender.org/blender/blender/pulls/132048