Fix potatosearch for device filtering (bug 969244)