Fixed issue where indexOf check on mimeTypes would've missed index 0