Fixes bugs where the TypeExtractor throws an NPE instead of the operators

If the user accidentally passes ```null``` instead of e.g. a MapFunction. The TypeExtractor throws the NPE instead of the higher layer.