[mms] Fix regression in handling invalid DateTime data due to a BC-incompatible change in PHP.