Fix trainer evaluation
Fix eval loss calculation in Trainer for models with `lm_labels` parameter, related to issue #4361

Fix trainer crash at eval time on TPU, related to issue #4362

Thanks for catching this, @patil-suraj!