Some code clean up in checkForTagAndCreateReader(...).