We fixed the way we return theme file path for different environments as part of this [pull request|https://github.com/cdapio/cdap/pull/11162]. This was a backward incompatible change as existing theme paths will resolve to an unknown path.
We should fix this by handling both old and new paths for backward compatible.