Allow transformation of null classes.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>