avoid detect folder.jpg under 'add' item.
Merge pull request #2585 from ulion/avoid_detect_folderjpg_under_add_item

avoid detect folder.jpg under 'add' item.