[x] I have written a descriptive pull-request title
[x] I have verified that there are no overlapping pull-requests open
[x] I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
[x] I have provided test coverage for my change (where applicable)
Description
Moving the foreground image intersect to before the sanitation check ensures invalid arguments are not processed.
Fixes #2663 will duplicate for main following this fix.
Prerequisites
Description
Moving the foreground image intersect to before the sanitation check ensures invalid arguments are not processed.
Fixes #2663 will duplicate for main following this fix.