Modified AbstractResource.fill to handle compressed error stream too

Added check to exception handler in AbstractResource.fill to handle a
compressed error stream.