Attempts to ignore linked files from the course size

Attempts to ignore linked files from the course size, by only counting files that don't have a referencefieldid (which seems to indicate a file is linked to another file)