Do not allow setting null cookie values

For 2.1.x branch