Add ignored state to IndexQueue items, set it when Moodle resource is a folder (refs #829)