cache_uniq_key fix nil error

`cache_uniq_key` method, if value=nil, will raise exception