fix the issue "Trying to get property of...

... non-object in ./plagiarism/turnitin/lib.php on line 335/1246
$plagiarismsettings is an an associative array not an object