Improved PatternParserNPExtractor and corrected validation of keyword arguments with default value None