allow empty key and doc during create.