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

Addresses the empty tooltip part of #6726.