Fixes to isDuplicateMessage

Removed bitmask parameter, found a bug in indexing of data [0 & BITMASK]
should be data[0] & BITMASK