minor optimization for FlateStream_getCode

pulls up variable declaration out of loop.