Corrected null check in setSeries

Was not setting series when the reader != null, instead of when the
reader == null. Fixed.