Fix validate tag name. Fix #13149 Upstream-commit: 3da0013ac4c12cacc36dfb8746ed6403e358256f Component: engine