Added a check to fix AIRAVATA-1439.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/airavata