Fix error on empty whitelist