Fixes #87131 by not iterating the excludedFields array if it's null.
Merge pull request #111 from luisromangz/87131-NPEIfNullExcludedProperties

Fixes #87131 by not iterating the excludedFields array if it's null.