Fixes IllegalStateException when an object is of a class that used to extend Record and has access to State but doesn't any more.