Issue 4848 newly uploaded image cannot be edited

Fixed the issue.

Please check.