It won't get automatically 'squared-off' till the expiry date.
Another point being, why would the traded-price of option drop to zero?
The option may stop trading, but that's not the same as price zero. And since you're buying an option, margin doesn't come into the picture as well - so no real worries.