Fix nil error on with_{readonly,writable} from non-switch_point model