It can happen that the LIST command tries to insert a mimetype (after it checked that it isn't already there), but then fails to insert because it was added meanwhile. This aborts the complete LIST job (which it wouldn't have to).
Other places that insert a mimetype for the collection are:
create.cpp, modify.cpp, akappend.cpp, append.cpp