Fix BeitForMaskedImageModeling
# What does this PR do?

Fixes #13235 

I've also added an integration test for BeitForMaskedImageModeling, to make sure it returns the same logits as the original implementation on the same input image.