Include check for the zero datetime. Fixes #2112