Prevent NPE in get revision state.