Silently rewrite 'tab' to 'widget'.

From #5372.