additional error handling

just small addition to purgeMonthOldXML so that DateTime.parse doesn't
crash the program during development. This error checking isn't
necessary for deployment.