Fixes #4154: Fix MX MTL component close compiler warning

Custom patch from ticket (originally from #3317).