Don't use *deleted* View.replaceWith() when reloading component
Merge pull request #1152 from njam/issue-1152

Fix usage of View.replaceWith()