Added hanlding of valid NSData object with 0 bytes for serializers