Issue #2737525 by geertvd: "Scroll to error message"-feature doesn't scroll to the right position when the first element is hidden