unbreak input profile: also copy alpha channel in case mask is displayed. fixes #9426
(cherry picked from commit d9c1c914273752450860446f0a4b9174843fd8ac)