Disable filter if search checkbox is unticked in database selection dialogs (fixes #9168)