Extended filter iterator match pattern
Avoided loading an empty document (closes claroline/Claroline#374)