Fixed issue with custom controls not being reattached to the dom after being detached.