Fix for GRAILS-10561.
1. Set the namespace which was earlier initialized to null
2. Change the incorrect constructor call order
3. Added version detection for MimeTypes
Typo in the test (change version). Got accidentally committed while trying out some -ve scenario
Merge pull request #406 from sukrit007/namespace_fix

GRAILS-10561