#2778 Bug - CFileValidator general exception when validating mime types for file whose upload failed

PR to replace PR #2779 following unintended master merge which corrupted the original PR.