Fixed the check for tag function (checkForTagAndCreateReader(...).