In media permission, isMediaInRestrictedFolder(), check folder exist before access his property
Merge chiba2