Fix `ErnieMEmbeddings` device issue
# What does this PR do?

Fix `ErnieMEmbeddings` CI failure for 
```bash
tests/models/ernie_m/test_modeling_ernie_m.py::ErnieMModelTest::test_multi_gpu_data_parallel_forward
```

See comments in the changes.
_The documentation is not available anymore as the PR was closed or merged._