Added a new overload of getEntitiesHavingComponent