Refactor determination of max updated timestamp

`[].max # => nil`
Merge pull request #15582 from sgrif/sg-timestamps

Refactor determination of max updated timestamp