adding resourceExists check for registry.content
Merge branch 'master' of https://github.com/wso2/jaggery