throw exception when trying to set with NULL key