undefined_fix

very small fix to avoid trying to access a property when a class has no properties.
This PR just removes npm preinstall from @sgtcoolguy's original PR.