Completion: more robust get_selected_proposal()

The header can't be selected, normally. But when proposals are
removed/inserted by the model, it can occur. In this case, the function
should return false to mean that no proposal is selected.