MDL-24759 fixing incorrect skipping on non-url file type resources, credit goes to...