Shobhana,
I never said that you should be caught.
I mentioned that you never qualified for it if you are on H1 and are living in US for more than 183 days in a Year. Your School teacher advised incorrectly. If IRS doesnt audit it(chances are less 1% as per national figures anyway), then you are fine, otherwise all you will have to do is an amendment. Its not a big deal at all. You filled what you perceived was right at that time.
If you get a RFE in 485 on later statges, 1040NR is not a cool thing then also. so just relax and file the correct form this time..
goodluck