While uploading a wadl grammars append with a null string-REGISTRY-2369

public jira : https://wso2.org/jira/browse/REGISTRY-2369