Removed some redundant calls to ReadNull and WriteNull.