Classification works better for age estimation  (take a look at any age estimation paper or the recent papers from cvpr).
Also, my original suggestion of setting the loss to 0 or a constant is way way cleaner than your suggestion. My question was is there a more elegant way.