Add some EOF checks to MPC::Properties.

Fixes #468 and #470.