fix issue with incorrect hasData result after multiple calls of set{Key,Value} and then clear{Key,Value}