Bug 865772 - check blob size before reading bytes from it