Fixes #87151 by checking if the reader is null before attemping to use it.
Merge pull request #112 from luisromangz/87151-NPERetrievingNonExistingStyleFromGS

Fixes #87151 by checking if the reader is null before attemping to use it