mod_turnitintooltwo: Test TII API before checking for EULA acceptance

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
plagiarism_turnitin: Fix bugs in file submission error log code

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>