Fix a possible infinite recursion in the BSP splitter.