fixed issue with license check and skipExistingHeaders

If skipExistingHeaders is true, license check does not distinguish between files with a different header and files with no headers.  The correct behavior should be files with a different header are ignored and files with no header are reported.  This pull request adds a test which exposes the issue and adds a fix.