Invoking `lastN` can throw a NPE if `theAdditionalRawParams` is not set. See https://github.com/hapifhir/hapi-fhir/pull/7242 for a quick fix.