Ensure opts.includePaths exists before calling a method on it.

The opts.includePaths can be null here, so we need to be sure they exist.