I traced that to this bug: Previewing new post empties attachment list of all but first attachment. When you have multiple attachments to your post and you want to preview it, you will loose all your attachments but the first. This will also happen when you edit your post later.Undefined index: MISSING_INLINE_ATTACHMENT
I manually implemented the suggested fixes. So, let me know here if you have problems with attachments to your posts.