Fix error message and returnvalue in fread

Summary: Closes https://github.com/facebook/hhvm/pull/3374

Reviewed By: svcscm

Differential Revision: D1483009

Pulled By: @fredemmott