Add null check function to record reader.