deal with missing closing boundary

@bf4 @jeremy
does this help ?

```
# split parts by boundary, ignore first part if empty, append final part when closing boundary was missing
```