It's not impolite to say nothing. I use 'nice to hear from you' when someone emails me after a long time witholut contact. I don't think there's a need to reply to the phrase- replying to the email is doing that. However, there's nothing wrong with 'nice to hear from you too'.
- For Teachers