Hi Prasad,
I have replicated the issue by assigning element of output of a query that results a blank xml to a row. It's definite that this error is due to invalid assignment in the ROW.
You have to reconsider your logic, nothing wrong with MII.
-Swaroop