Added an assert that triggers in debug mode if a deleted secondary index is accessed.