The tracks whose measures aren't being deleted were empty already so there was nothing to delete and as a result, the hole was not deleted.
The tracks whose measures are being deleted had events of one form or another in them so they were deleted and then the hole was deleted.