Guard against exceptions when an indexPath is requested whose index is greater than the number of objects in the footer/header/sorted objects collection