Made format() from invalid timestamps return null.