Fix: Coremongo for nil rs and statemdl

Merged Akshay Bharambe requested to merge ab_Fix_CoreMongo into devbranch