om2: avoid NPE when reading values