bugfix in RS_EntityContainer::getNearestPointOnEntity
( added if (en!=NULL ), and some cleanup in rs_entitycontainer.cpp