Fix bug #1661227; MDITEM now throws an error when given bad inputs.
Authored by: david_costanzo 2008-02-17
Parent: [r2579]
Child: [r2581]