Fixed ClassCastException when loading ModLoader mods

The first item in the transformers list is not necessarily an instance of `AccessTransformer`, so the entire list should be iterated through to find it.