Checking if classname has been set

As mentioned in issue 162 the error provided does not point to the actual problem at hand. This patch checks if classname has been set before it's used

The problem occurs when TRANSPORTER_CLASS is not available in module, which happened on my entirely fresh installation of debian 7 today.