Elastic anomalies under magnetic fields in the heavy-fermion ferromagnet YbPtGe