Fix crash if something goes wrong during transforming.
i.e. unable to read class.