Only add widgets to tooltip when they are required.
Only add widgets to tooltip when they are required.

This avoids empty lines in the suggestion window and fixes a crash when
inside filename completion.

myint-archive/bpython,thomasballinger/old-bpython-with-hy-support,hirochachacha/apython