[qmf] Remove exceeding elements in the message model after inserting new ones

New messages can be inserted anywhere in the model, when the limit
is exceeded we remove the elements in excess, i.e the trailing ones,
instead of stopping the insertion of new elements, that can have a smaller index
than the existent ones.