[Core] - make sure realms.resource_types is never nil - DTACLOUD-460

https://issues.apache.org/jira/browse/DTACLOUD-460