One good thing about non-immigrant visa (e.g., J, M, L, H) is that your non-US resident status starts when you leave the US. Since you had no taxable income and your spouse reported his/her income on a married separate 1040, you didn’t have the filing requirement in the first place. Don’t worry about 1040 for 2016.