[Truffle] - raises TypeError if the constant qualifying the class is nil.

This is the first step to make this spec pass.