try/catch around recording of scroll position and anchor in rmd output presenter