Fixed massCenter and massCenterW

massCenter and massCenterW used GetMassCenter on the ent itself instead
of its phys object.
Also added a validity check to the retrieved phys objects.
Merge pull request #67 from wraith321/develop

Fixed massCenter and massCenterW