fixes #4029
Merge pull request #4038 from dotCMS/issue-4029-widget-rest-api-various-errors

Issue 4029 widget rest api various errors