Use the “Set Brush Resource Object” node. I do this and it works perfectly for me to swap Media Texture references at runtime: