Fixed inline table editing for mongo collection type

Possibly fixes #123.
The main point of the fix is that sonata uses zero element of the collection to render table header. But zero element may not exist. So I use **first** filter to get actually first element, whichever index it has.