Update RegistryAuthorizationManager.java

check the existence of the 'value' of the mount path mapping
before replacing the 'key' part
in the original resource path

I have sent same pull request to the wso2/carbon4-kernel. I realized it should goes to the wso2-dev/carbon4-kernel so i am re- sending same pull request.