    NfcoreSchema.validateParameters JSONObject error
## Description of the bug

Updating the pipelines MHCquant and DIAproteomics to the template 1.13.1 resulted in an error calling the function:

NfcoreSchema.validateParameters(params, json_schema, log)

```
Unknown method invocation `containsKey` on JSONObject type
```
## Steps to reproduce

The error occured both here:
https://github.com/nf-core/diaproteomics/pull/103

and here:
https://github.com/nf-core/mhcquant/pull/160

diff --git a/nf_core/lint/nextflow_config.py b/nf_core/lint/nextflow_config.py
index b458c257..19f10f04 100644
--- a/nf_core/lint/nextflow_config.py
+++ b/nf_core/lint/nextflow_config.py
@@ -116,6 +116,7 @@ def nextflow_config(self):
         "params.container",
         "params.singleEnd",
         "params.igenomesIgnore",
+        "params.name",
     ]
 
     # Remove field that should be ignored according to the linting config
diff --git a/nf_core/pipeline-template/lib/NfcoreSchema.groovy b/nf_core/pipeline-template/lib/NfcoreSchema.groovy
index 78e8c65d..54935ec8 100644
--- a/nf_core/pipeline-template/lib/NfcoreSchema.groovy
+++ b/nf_core/pipeline-template/lib/NfcoreSchema.groovy
@@ -219,7 +219,7 @@ class NfcoreSchema {
                     }
                 }
             }
-            if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').containsKey(ignore_param)) {
+            if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').keySet().contains(ignore_param)) {
                 rawSchema.get("properties").remove(ignore_param)
             }
             if(rawSchema.keySet().contains('required') && rawSchema.required.contains(ignore_param)) {
['nf_core/pipeline-template/lib/NfcoreSchema.groovy', 'nf_core/lint/nextflow_config.py']