Fixed an error

The extension errors when no excluded pages are selected. I've put an if before it to prevent this.