Fix setting MAM dates with undefined