Don't show the Qt console tooltip when no object was found

Addresses the empty tooltip part of #6726.
The default for `.get()` is None, which booleates False, so it doesn't make a practical difference, but we may as well make it explicit. Done.