[frontend] Fix transform of media.replaces