Set created_at only when isNew

Otherwise, loading documents without the "created_at" field and saving them causes the creation time to be re-set to the current time.

Using isNew is more accurate and can prevent that from happening.