Fixes to role exist and tenant configs
Merge branch 'rc4' of github.com:WSO2Mobile/mdm into rc4