Implement replace_element for FXMLCombiner