(more) correct implementation of snapshot is-up-to-date function.