MDL-42222 Assignment: Added type check before checking mimetype

Online submission type pass string in files, so added check
to see if file is of type stored_file then check mimetype