All places are shown as available to delete.
I think MapDataServices->activePlaces() needs to be updated to reflect the changes introduced in Schema 45
And just out of interest why are we using the places table to get the active locations (and not the place_location table) because locations are not tied to a tree
As you were, I've just realised why