Fix for scan_list_uids(): First, the code triggers a warning "Can't use string ("") as an ARRAY ref while "strict refs" ..." when there are no scans. Second, the function should always return an empty list, because that is expected by callers at several places within the module.