Ticket #4764: properly handle template instantiations with only default parameters.