addresses comments in https://github.com/readium/readium-sdk/commit/6a791df5b528ba1dc7bf54e0161efdc167d3e366#diff-e019e01a734b083686dba47a2f399bffR1428
(ensure offset is up to date in resource before reading bytes)