Looking at the ender dragon does not display its health
frodare commented
This is a side effect of how the Ender Dragon is built. It looks to be created of multiple parts that don't extend the LivingEntity code making it not look like a live entity to ToroHealth.