OED, OAAD, Webster's all say either form is considered correct. Language is a living thing. "Was" was correct before "were" was proscribed by the Latinizers. Now they're deemed equally correct.
I think I would say "were" in this situation myself, though.