Fix module script MIME check to not include params …
Also makes it error when there is no MIME type available.