Check the result of tellg in Scanner::computeMd5

Summary: Fail hard if tellg retuns -1 (error) or the result doesn't fit in a
32-bit int.

Reviewed By: @markw65

Differential Revision: D1532653