Correction to MDI handling.
Merge pull request #1370 from rhattersley/grib-mdi

Correction to MDI handling.