Add check in catberry initialization do not wrap document again.