Throw a better exception when user tries to set null cookie value

null values are typically allowed in Java maps so it is confusing that they are not allowed here, but no error is given to indicate that