fix to NPE
replacing JSONNull.getInstance() for getNullType() to consider Defaults.doesIgnoreJsonNulls()