revert changes in modules/core/src/persistence_yml.cpp (PR15842)
revert changes in modules/core/src/persistence_yml.cpp (PR15842)

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv