undefined_fix

very small fix to avoid trying to access a property when a class has no properties.