Change to accomodate HLint warnings.
getMimeType function.