BZ1014071 - DataModelOracle: Performance issues when model is large. NPE fix.
(cherry picked from commit 3622529f47f59bc3c549564d388ac23915c2ce56)