The MW506E is an exemption from withholding tax, which means you were not required to submit money at the time of the sale, but it does not exempt you from filing the income tax return (even if no tax is expected). Maryland requires nonresidents to file if they had federal gross income over a certain amount and income from state sources, so you would report the sale and show the basis so they can see there was no taxable income.