This changes the behavior when deleting the last key of an FCurve on layered actions. Previously the FCurve would continue to exist, whereas now it is deleted. This makes it consistent with legacy actions. I modified the "Clear Keyframes" operator in this PR as well to make it work with layered actions. Pull Request: https://projects.blender.org/blender/blender/pulls/125327