Stability fix: prevent potential class cast exception in case list of values isn't a PersistentList (may happen if record was not yet persisted to DB and updated).