Fix NPE when generic_type_sim is not set