The opinions that certain areas of mathematics are dead are frequently stated but in many cases incorrect. Some areas experience declines in activity and then revivals. Many examples can be given.
On the other hand, my recommendation to a PhD student would be: do what your adviser says. When you obtain a permanent position you will be free to pursue whatever topic you yourself find interesting. Until that time you have to take into account various things other than intrinsic interest of the topic.