DB: DB.getXX on read-only store now does throw exception, but returns empty read-only object. Fix #254