Fix for Replicator 1 not finishing builds.

If the progress reaches 100% before last layer, the firmware erroneously stops reading the file.
Merge pull request #984 from giseburt/origin_master

Fix for Replicator 1 not finishing builds.