fix console errors printed when breakpoints are set in lapply-invoked functions