fixed the issue CARBON-14148

git-svn-id: https://svn.wso2.org/repos/wso2/carbon/kernel/trunk@176048 a5903396-d722-0410-b921-86c7d4935375
apply the patch for CARBON-14159

git-svn-id: https://svn.wso2.org/repos/wso2/carbon/kernel/trunk@176049 a5903396-d722-0410-b921-86c7d4935375