Fixed error handling

Jora-issue: WP-709
Fixed jasmine test on windows

Jira-issue: WP-709