When the last boundary was encountered, the onPartEnd and onEnd callbacks were not being called, nor was the parser state set to END.
Modified last boundary handling logic to call these callbacks and set the parser state.
Mirrors a matching fix in formidable.js.