fixed issue for Jira task CORE-850(UpdateResource Api call getting 500 e...

...rror).