[FLINK-1181] Fix IOReadableWritable checks in RPC service