Fix assertion failure with undefined identifier in port map