While registering an excludePathPattern an includePathPattern is also required

Added a check for emtpyness of `excludePatterns` next to the `includePatterns`

Issue: SPR-11130

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.