Fix #13401: replaceWith(""). Close gh-1163.