ios: Don't fail a write of zero-length payload.