fixes for case when rerender() is called before DOM is built from remote request result