Don't crash when encountering DateTimes on output

Change-Id: I4765075b104b33ca66d0f67ea8509bd24bb7894d