refs #16181. Fix detection of old vs. new stores to cover cases when the (new) store does not have idProperty as own property.