Revert "SERVER-13760 Do not call dateToISOString if date is not formatable"

This reverts commit bf5f075b3b73c242042be8fd2c0b9b60af5f0089, which broke the build.