Fix bug in scroll view delegate code if selectedDate is set while view is not visible