Fix crash when logs are empty because Keras has wiped them out of spite
In situations where the training history is empty, TF model card creation via `model.create_model_card()` or `model.push_to_hub()` no longer crashes.
Thank you for your PR! The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_15258). All of your documentation changes will be reflected on that endpoint.<|||||>Great job merging this PR! the documentation will now be removed from the staging environment.