[OPENENGSB-3761] handle null values correctly

http://issues.openengsb.org/jira/browse/OPENENGSB-3761
This was an intermediate step, before i made the method getRealClassImpl static. I'll remove the method.