[libcommhistory] Enable limiting for flat model queries

It's easy to limit results for queries for models which aren't using
tree mode, and limiting increases performance when the full history
isn't needed.
Isn't there a check already there in case limit is 0 which would result to an empty set? Other models do a similar "> 0" check, which in fact sounds better than this, tackles the theoretical negative value mistake.