Fix for PR 16367, display the name of a function in a diagnostic instead of
showing "(null)".