Getting a list of objects by type where no objects have been created yet no longer crashes