core/iccprofile: don't crash if permission errors occur

The version of the function without an error code throws an exception if an OS error of any kind happens.

BUG: 498861

Commit 2 (not to be cherry-picked because string freeze) shows a more specific error message when this happens.

Merge request reports

Loading