Error when removing associated section or field

Symphony throws an error on accessing a section's publish interface when an associated section or field has been removed.