fixes #5318
Merge pull request #5364 from dotCMS/issue-5318-image-editor-never-finish-to-load

fixes #5318