Completion: warning when a header is selected

Normally it never happens, but it's better to have the warning, just in
case.
Completion: small clean-up of render_proposal_icon_func()