Adds stub for captureStackTrace