Small optimization to ESM::Variant
Fix loading ESX files cleaned with testool (Fixes #1382)