Fixes #1042 - Fix an NPE in the class transformer when the class name is null