Conversion from TF BERT Checkpoint to HF Model Breaks
### System Info

I'm trying to convert the BERT TF1 checkpoint provided in [MLPerf GDrive](https://drive.google.com/drive/folders/1oQF4diVHNPCclykwdvQJw8n_VIWwV0PT?usp=sharing) to a HF BERT model using the following transformer-cli command provided in [HF documentation](https://huggingface.co/docs/transformers/converting_tensorflow_models):
```
transformers-cli convert --model_type bert --tf_checkpoint model.ckpt-28252 --config bert_config.json --pytorch_dump_output pytorch_model.bin
```
but it breaks with the following error:
```
Traceback (most recent call last):
  File "/workdisk/vlad/composer_venv/bin/transformers-cli", line 8, in <module>
    sys.exit(main())
  File "/workdisk/vlad/composer_venv/lib/python3.9/site-packages/transformers/commands/transformers_cli.py", line 55, in main
    service.run()
  File "/workdisk/vlad/composer_venv/lib/python3.9/site-packages/transformers/commands/convert.py", line 103, in run
    convert_tf_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
  File "/workdisk/vlad/composer_venv/lib/python3.9/site-packages/transformers/models/bert/convert_bert_original_tf_checkpoint_to_pytorch.py", line 36, in convert_tf_checkpoint_to_pytorch
    load_tf_weights_in_bert(model, config, tf_checkpoint_path)
  File "/workdisk/vlad/composer_venv/lib/python3.9/site-packages/transformers/models/bert/modeling_bert.py", line 172, in load_tf_weights_in_bert
    if pointer.shape != array.shape:
  File "/workdisk/vlad/composer_venv/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Embedding' object has no attribute 'shape'
```

### Who can help?

@LysandreJik
@Rocketknight1

### Information

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

Steps to reproduce:
1. Download the following 4 files from [MLPerf GDrive](https://drive.google.com/drive/folders/1oQF4diVHNPCclykwdvQJw8n_VIWwV0PT?usp=sharing) and put them in the same directory: 
- tf1_ckpt/model.ckpt-28252.data-00000-of-00001
- tf1_ckpt/model.ckpt-28252.index
- tf1_ckpt/model.ckpt-28252.meta
- bert_config.json
2. Run the command to convert TF checkpoint to HF BERT model:
```
transformers-cli convert --model_type bert --tf_checkpoint model.ckpt-28252 --config bert_config.json --pytorch_dump_output pytorch_model.bin
```

### Expected behavior

The command should convert TF checkpoint to HF BERT model.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.